﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebFormSandBox
{
    /// <summary>
    /// Summary description for SandBox
    /// </summary>
    public class SandBox : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";

            if (null != context.Request.Files)
            {
                context.Response.Write("files:" + context.Request.Files.Count);
            }
            else
            {
                context.Response.Write("no files");
            }

            context.Response.End();
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}